Auto merge of #3157 - japaric:target-rustflags, r=alexcrichton
authorbors <bors@rust-lang.org>
Wed, 5 Oct 2016 16:16:15 +0000 (09:16 -0700)
committerGitHub <noreply@github.com>
Wed, 5 Oct 2016 16:16:15 +0000 (09:16 -0700)
add support for per-target rustflags in .cargo/config

you can now specify rustflags on a per-target basis in .cargo/config:

``` toml
[target.x86_64-unknown-linux-gnu]
rustflags = ["x86", "specific", "flags"]

[target.arm-unknown-linux-gnueabi]
rustflags = ["arm", "specific", "flags"]
```

If both build.rustflags and target.*.rustflags are specified, the
target.* ones will be used.

As before RUSTFLAGS overrides either set.

closes #3153

r? @alexcrichton I've only added a smoke test and a precedence test. Let me know if I should add more tests!


Trivial merge